﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Calendar Test Page</title>
<script src="dollar.js"></script>
<script src="Calendar.js"></script>
<style>
body{
	font-size: 12px;
}
.cal_tbody a{
	text-decoration:none;
	color:#333;
}
a.cal_after{
	color:#aaa;	
}
a.cal_today{
	border:1px solid #000;
}
a.cal_selected{
	background:green;
	color:white;
}
</style>
</head>
<body>
	<div id="cal">
	</div>
	<script>
		new $.Calendar('cal', {
			onChoose : function (d) {
				alert (d.getFullYear() + '-' + (d.getMonth() + 1)	+ '-' + d.getDate())
			}	
		});
		var STemplate_template_function = function (_out, _context) {
			 var out = _context; 
			 with (_context) {
			 	_out.write("");
			 	var __LIST__types = typeof types =='undefined' ? false : types;
			 	var types_ct = 0; 
			 	var __LOOP_COUNT__ = 0;
if (__LIST__types) {
for (var types_ipro in __LIST__types) {
if (typeof __LIST__types[types_ipro] == 'function') continue;
types_ct++; __LOOP_COUNT__ ++;
item = __LIST__types[types_ipro];
alert(item);
_out.write("\n<a href=\"javascript:void(0)\" onclick=\"pptv.Report.defaultAction(");
alert(item);
_out.write(item.id);
_out.write(")\">\n    ");
_out.write(item.typeName);
_out.write("\n</a>\n");
} 
}
 if (__LOOP_COUNT__ == 0) {
 if (true) {
_out.write("\n该分组下没有数据\n");
}
 }
_out.write("\n");}};
STemplate_template_function({write: function (s){
console.log(s);	
}}, {
types : [{"custom1FieldName":"处理数量","custom2FieldName":null,"id":1,"typeName":"test","valueFieldName":"删除数量"
}]	
});
	</script>
</body>
</html>